#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <algo.h>
#include <iostream.h>

#ifdef MAIN
#define lexcmp2_test main
#endif
#endif
int lexcmp2_test(int, char**)
{
  cout<<"Results of lexcmp2_test:"<<endl;
const unsigned size = 6;
#ifndef ACORN_CFRONT
char n1[size] = "shoe";
char n2[size] = "shine";
#else
static char n1[size] = "shoe";
static char n2[size] = "shine";
#endif

  bool before =
    lexicographical_compare(n1, n1 + size,
                             n2, n2 + size,
                             greater<char>());
  if(before)
    cout << n1 << " is after " << n2 << endl;
  else
    cout << n2 << " is after " << n1 << endl;
  return 0;
}
